package FlyweightMod;

// 客户端
public class Client {

    public static void main(String[] args) {
        code code = new code();
        AccountFactory accountFactory = AccountFactory.getInstance();

        // 模拟用户权限
        String[] permissions = {"Normal", "VIP", "SuperVIP"};

        for (String permission : permissions) {
            code.Account account = accountFactory.getAccount(permission);
            account.display();
        }
    }
}
